package org.example.demo02;

public class BigStar implements Star{
    private String name;
    public BigStar() {

    }
    public BigStar(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BigStar{" +
                "name='" + name + '\'' +
                '}';
    }
    @Override
     public String sing(String name){
         System.out.println(this.name+"正在唱"+name);
         return "谢谢观众";
     }
     @Override
    public void dance(){
        System.out.println(this.name+"正在跳舞"+name);
    }
}
